load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "stubkeymanager",
    testonly = 1,
    srcs = ["stubkeymanager.go"],
    importpath = "github.com/google/tink/go/internal/testing/stubkeymanager",
    visibility = ["//:__subpackages__"],
    deps = [
        "//core/registry",
        "//internal/internalregistry",
        "//proto/tink_go_proto",
        "@org_golang_google_protobuf//proto",
    ],
)

go_test(
    name = "stubkeymanager_test",
    srcs = ["stubkeymanager_test.go"],
    deps = [
        ":stubkeymanager",
        "//proto/aes_gcm_go_proto",
        "//proto/tink_go_proto",
        "@com_github_google_go_cmp//cmp",
        "@org_golang_google_protobuf//testing/protocmp",
    ],
)

alias(
    name = "go_default_library",
    actual = ":stubkeymanager",
    visibility = ["//:__subpackages__"],
)
